var title_bar_path2 = getLastScriptPath();
function loadTitleBar2_L1(titles, div1, div2) {
	var title_bar_div;
	title_bar_div = $("div[data-role='header']");
	title_bar_div.attr('data-position', 'fixed');
	title_bar_div.attr('data-tap-toggle', 'false');
	title_bar_div.load(title_bar_path2 + '/title_bar_tab2_l1.html', function () {
		$('#head_left').html(titles[0]);
		$('#head_mid').html(titles[1]);
		$('#head_right').html(titles[2]);
		$("#head_mid").on('tap', function () {
			$("#head_mid").css({"border-bottom": "2px solid #59bd9b"});
			$("#head_right").css({"border": "none"});
			$(div1).css({"display": "none"});
			$(div2).css({"display": "block"})
		});
		$("#head_right").on('tap', function () {
			$("#head_right").css({"border-bottom": "2px solid #59bd9b"});
			$("#head_mid").css({"border": "none"});
			$(div2).css({"display": "none"});
			$(div1).css({"display": "block"})
		});
	})
}

function loadTitleBar2(titles, div1, div2) {
	var title_bar_div;
	title_bar_div = $("div[data-role='header']");
	title_bar_div.attr('data-position', 'fixed');
	title_bar_div.attr('data-tap-toggle', 'false');
	title_bar_div.load(title_bar_path2 + '/title_bar_tab2_l1.html', function () {
		$('#head_left').css('display', 'none');
		var head_mid = $('#head_mid');
		var head_right = $('#head_right');
		head_mid.html(titles[0]);
		head_right.html(titles[1]);
		head_mid.css('margin-left', '32%');

		head_mid.on('tap', function () {
			$("#head_mid").css({"border-bottom": "2px solid #59bd9b"});
			$("#head_right").css({"border": "none"});
			$(div1).css({"display": "block"});
			$(div2).css({"display": "none"})
		});
		head_right.on('tap', function () {
			$("#head_right").css({"border-bottom": "2px solid #59bd9b"});
			$("#head_mid").css({"border": "none"});
			$(div2).css({"display": "block"});
			$(div1).css({"display": "none"})
		});
	})
}


